﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using ScrumLite.Services;
using ScrumLite.Services.Contracts;
using System.Collections.ObjectModel;

namespace ScrumLite.Gateways
{
    public class DefectsServiceClient : ClientBase<IDefectsService>, IDefectsService
    {

        #region IDefectsService Members

        public Collection<Defect> GetDefects(string projectId, byte triaged)
        {
            return base.Channel.GetDefects(projectId, triaged);
        }

        public Defect GetDefect(string projectId, int moniker)
        {
            return base.Channel.GetDefect(projectId, moniker);
        }

        public void AddDefect(Defect defect)
        {
            base.Channel.AddDefect(defect);
        }

        public void UpdateDefect(Defect defect)
        {
            base.Channel.UpdateDefect(defect);
        }

        public void DeleteDefect(Guid defectId)
        {
            base.Channel.DeleteDefect(defectId);
        }

        public int GetNextMoniker(string projectId)
        {
            return base.Channel.GetNextMoniker(projectId);
        }

        public void SaveDefects(Defect[] defects)
        {
            base.Channel.SaveDefects(defects);
        }


        public Defect[] GetDefectsByDeliverable(string projectId, string deliverableId)
        {
            return base.Channel.GetDefectsByDeliverable(projectId, deliverableId);
        }

        #endregion
    }
}
